{% extends "base.html" %}
{% block tabs %}
<body onLoad="P7_ExpMenu()">
<div id="menuwrapper">
<ul id="p7menubar">
	<li><a class="trigger" href="/" title="Home">Home</a>
		<ul>
			<li><a href="#">Sub 1.1</a></li>
			<li><a href="#">Sub 1.2</a></li>
			<li><a href="#">Sub 1.3</a></li>
			<li><a href="#">Sub 1.4</a></li>
		</ul>
	</li>
</ul>
</div>
</body>
{% endblock %}

{% block sidebar_title %}<h4>Login</h4>{% endblock %}

{% block sidebar_content %}
	{% if error_message and not error_message == "start" %}
		<label class="text" style="color: #FF0000">{{ error_message }}</label>
		<form action="" method="post">{% csrf_token %}
	{% else %}
		<form action="/login/" method="post">{% csrf_token %}
	{% endif %}
	<label style="font-weight:bold">Username:   </label><input type="text" name="username"/><br />
	<label style="font-weight:bold">Password: 	</label><input type="password" name="password" /><br /><br/>
	<input id="search_btn" type="submit" value="Login" />
	{# <a href="/reg/userReg/">Register</a> #}
	</form>
	
	<hr/>
	
	Forgot password? Enter your email and a new password will be generated and sent to you.<br/><br/>
	<form action="/emailPass/" method="get">{% csrf_token %}
		<input type="text" name="user"> 
		<input id="search_btn" type="submit" value="Send" />
	</form>
	{% if forgotPass_success_msg %}
		{{ forgotPass_success_msg }}
	{% endif %}	
	{% if forgotPass_error_msg %}
		<label class="text" style="color: #FF0000">{{ forgotPass_error_msg }}</label>
	{% endif %}
{% endblock %}

{% block main_title %}<h1>About JAMS</h1>{% endblock %}
{% block main_subtitle %}<small>An idea started by a few musicians who are both teachers and students of the all divine art of music.</small>{% endblock %}
{% block main_content %}
	JAMS, a platform for everything related to music, teachers, students, institutes, shops, etc. <br/><br/>
	The place where you can connect with other musicians, get classes, find studios, locate shops close to you. 
{% endblock %}

{% block main_lower_title %}
{%comment%}	<h4>Sign Up</h4> {%endcomment%}
	<small></small>
{% endblock %}

{% block main_lower_content %}
{%comment%}
	<form id="form_register" class="appnitro"  method="post" action="/register/">{% csrf_token %}
		{{ form.non_field_errors }}
		{% for field in form %}
			<div class="fieldWrapper">
				<dl><b>{{ field.label_tag }}</b></dl>
				{% if field.errors %}
					<label class="text" style="color:#FF0000" >{{ field.errors }}</label>
				{% endif %}
				{{ field }}<br/>
			</div>
		{% endfor %}
	
		<dl><b>Email </b></dl>
		{% if email_error %}
			<dd><label class="text" style="color:#FF0000" ><li>{{ email_error }}</li></label></dd>
		{% endif %} 
		<input name="email" class="element text medium" type="text" maxlength="255" value="{{ email }}"/><br/> 
	
		<br/>
		<dl><b>You are a/an</b></dl>
		{% if userType_error %}
			<dd><label class="text" style="color:#FF0000" ><li>{{ userType_error }}</li></label></dd>
		{% else %}
			<br/>
		{% endif %}
		<input id="element_1_1" name="user_type" class="element radio" type="radio" value="student" />
		<small><label class="choice" for="element_1_1">Student</label><br/></small>
		<input id="element_1_2" name="user_type" class="element radio" type="radio" value="teacher" />
		<small><label class="choice" for="element_1_2">Teacher</label><br/></small>
		<input id="element_1_3" name="user_type" class="element radio" type="radio" value="institute" />
		<small><label class="choice" for="element_1_3">Institute</label><br/><br/></small>
		
		<input id="search_btn" type="submit" value="Sign Up" /><br/><br/><br/>
	</form>	

	{%endcomment%}
{% endblock %}
